package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface DishService {


    //新增菜品和口味
    @Transactional
    public void addDish(DishDTO dishDTO);

    PageResult pageQuery(DishPageQueryDTO dto);

    void deleteDish(List<Long> ids);

    void status(String status, Integer dishId);

    DishVO selectDishById(Long id);

    void update(DishDTO dishDTO);

    List<Dish> selectList(Long categoryId);
}
